Mailinglist: first-gmbh-internal from 5005:
Create New Mailinglist As Global Admin| name | value |
|---|---|
| partnerPersonTradeName | First GmbH |
| subscriberFamilyName | Miller |
| subscriberGivenName | Frida |
| subscriberEMailAddress | frida.miller@example.org |
| mailingList | first-gmbh-internal |
HTTP GET "/api/hs/office/persons?name=First+GmbH" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "63b26b7f-9bc0-4f20-a954-5b6f52f8df23", // Person: First GmbH
"personType" : "LEGAL_PERSON",
"tradeName" : "First GmbH",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP POST "/api/hs/office/relations" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }` \
<<EOF
{
"type" : "SUBSCRIBER",
"mark" : "first-gmbh-internal",
"anchor.uuid" : "63b26b7f-9bc0-4f20-a954-5b6f52f8df23", // Person: First GmbH
"holder" : {
"personType" : "NATURAL_PERSON",
"familyName" : "Miller",
"givenName" : "Frida"
},
"contact" : {
"caption" : "Frida Miller",
"emailAddresses" : {
"main" : "frida.miller@example.org"
}
}
}
EOF
=> status: 201 CREATED 56cd6316-55af-4d0c-95a5-992899d90eca
generated on 2026-08-10 03:08:33 for branch HEAD